using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using DTO;
using DAOLayer;

namespace BUSLayer
{
    public class SachBus
    {
        public static IList LayDanhSach()
        {
            return SachDao.LayDanhSach();
        }
        public static DataTable LayBang()
        {
            return SachDao.LayBang();
        }
        public static void Them(SachDto sach)
        {
            SachDao.Them(sach);
        }
        public static void Xoa(int ma)
        {
            SachDao.Xoa(ma);
        }
        public static void Sua(SachDto sachDto)
        {
            SachDao.Sua(sachDto);
        }
        public static SachDto TimKiem(int ma)
        {
            return SachDao.TimKiem(ma);
        }
        public DataTable LayNXB()
        {
            SachDao sDao = new SachDao();
            DataTable dt = sDao.LayNXB();
            return dt;
        }
        public DataTable LayGia()
        {
            SachDao sDao = new SachDao();
            DataTable dt = sDao.LayGia();
            return dt;
        }
        public DataTable TimKiem(SachCrt sCrt)
        {
            SachDao sDao = new SachDao();
            DataTable dt = sDao.TimKiem(sCrt);
            return dt;
        }
        public IList TimKiemSach(string sql)
        {
            SachDao sDao = new SachDao();
            return sDao.TimKiemSach(sql);
        }
    }
}
